<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ExceptionHandler
 *
 * @author Administrator
 */
namespace frontend\exception;
use Yii;
class ExceptionHandler  extends \yii\base\ErrorHandler{
    protected function renderException($exception) {
       echo $exception->getCode() .":".$exception->getMessage();
        exit;
    }

//put your code here
}
